import * as React from 'react'
import { useAppEvent } from 'remax/macro'
import { cloud } from 'remax/wechat'
import 'annar/dist/annar.css'
import './app.css'

const App: React.FC = props => {
  useAppEvent('onLaunch', () => {
    cloud.init({
      // Development
      // env: 'wbg-business-dev-av7lc',
      // Production
      // env: 'wbg-business-prod-xsvv6',
      traceUser: true,
    })
  })

  return props.children as React.ReactElement
}

export default App
